package Banking;

public class Bank {
    private Customer[] customers;
    private int numberofCustomer=0;
    public Bank(){
        customers =new Customer[100];
    }
    private static Bank bank = new Bank();

    public static Bank getBank() { //getbank
        return bank;
    }

    public void addCustomer(String f, String l){
        Customer customer=new Customer(f,l);
        customers[numberofCustomer]=customer;
        numberofCustomer++;
    }
    public int getNumberofCustomer(){
        return numberofCustomer;
    }
    public  Customer getCustomer(int index){
        return customers[index];
    }
}
